Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-installed-globally

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-installed-globally

Check if your package was installed globally

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11M
decreased by-10.96%
Maintainers
1
Weekly downloads
 
Created

What is is-installed-globally?

The `is-installed-globally` package is a simple utility that allows developers to check if a given npm package is installed globally on the system. This can be particularly useful for CLI tools or libraries that need to adjust their behavior based on whether they're running in a global context.

What are is-installed-globally's main functionalities?

Check if a package is installed globally

This feature allows developers to programmatically determine if the current package is installed globally. It returns a boolean value: `true` if the package is installed globally, and `false` otherwise. This can be useful for CLI applications that may have different behaviors or configurations when installed globally versus locally.

const isInstalledGlobally = require('is-installed-globally');

console.log(isInstalledGlobally); // true or false

Other packages similar to is-installed-globally

Keywords

FAQs

Package last updated on 06 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc